Skip to content

Implement Adaptive retry strategy #4

Open
ubaskota wants to merge 1 commit intoadaptive_retriesfrom
adaptive_retry_strategy
Open

Implement Adaptive retry strategy #4
ubaskota wants to merge 1 commit intoadaptive_retriesfrom
adaptive_retry_strategy

Conversation

@ubaskota
Copy link
Owner

@ubaskota ubaskota commented Jan 29, 2026

Issue #, if available:

Description of changes:
Implement AdaptiveRetryStrategy that extends StandardRetryStrategy with client-side rate limiting using token bucket and CUBIC congestion control algorithm.

Key Changes:

  • Add AdaptiveRetryStrategy class with rate limiter integration
  • Implement timeout handling for token acquisition that counts as retry attempt
  • Integrate rate limiting hooks in RequestPipeline._retry() method
  • Add thread-safe async lock to RequestRateTracker.measure_rate()
  • Add comprehensive unit and functional tests for adaptive retry behavior

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant